<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Home Social</title>
        <script language="javascript">
            function Checkform(){   
                var username = document.getElementsByName("tbusername_signup")[0].value;
                var password = document.getElementsByName("tbpassword_signup")[0].value;
                var email =    document.getElementsByName("tbemail_signup_signup")[0].value;
                if(username==""||password==""||email==""){
                    alert("fill username and password");
                    return false;
                }
                else{
                    return true;				
                }
            } </script>
        <style>
            label{
                display: inline-block;
                width: 100px;
                height: 30px;
                padding: 4px;
            }
            input{
                padding: 4px;
            }
        </style>
    </head>
    <body>
        <form name="mainform" action="../bus/signup.php" method="post" onsubmit="return Checkform();">
            <div>
                <label for="tbusername_signup">User Name:</label>
                <input type="text" name="tbusername_signup"/>
            </div>
            <div>
                <label for="tbemail_signup">Email:</label>
                <input type="text" name="tbemail_signup"/>
            </div>
            <div>
                <label for="tbpassword_signup">Password:</label>
                <input type="password" name="tbpassword_signup"/>
            </div>
            <div>
                <label for="tbgender_signup">Gender:</label>
                <select name="tbgender_signup" id="tbgender_signup">
                    <option value="0" >Female</option>
                    <option value="1" >Male</option>
                </select>
            </div>
            <div>
                <label for="tbstatus_signup">Status:</label>
                <select name="tbstatus_signup">
                    <option value="0">Single</option>
                    <option value="1">Married</option>
                    <option value="2">Relationship</option>
                </select>
            </div>
            <div>
                <label for="tblocation_signup">Location:</label>
                <input type="text" name="tblocation_signup"/>
            </div>
            <div>
                <label for="tbage_signup">Age:</label>
                <input type="text" name="tbage_signup"/>
            </div>
            <input type="submit" value="Submit"/>
        </form>
        <?php
            
        ?>
    </body>
</html>
